package com.rrym.gateway;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope
public class TestController {


    @Autowired
    DiscoveryClient discoveryClient;

//    @Value("${bepo.name}")
//    public String name;
//
//    @Value("${name1}")
//    public String name1;
//
//
    @RequestMapping(value = "/test")
    public String test(){
        return discoveryClient.getServices().toString();
    }
//    @RequestMapping(value = "/test1")
//    public String test1(){
//        return name1;
//    }
}
